package com.neusoft.elmboot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import com.neusoft.elmboot.po.OrderDetailet;

@Mapper
public interface OrderDetailetMapper {

	@Insert("insert into orderdetailet (orderId, foodName, foodPrice, quantity) VALUES (#{orderId}, #{foodName}, #{foodPrice}, #{quantity})")
    int saveOrderDetailet(OrderDetailet od);
	
	List<OrderDetailet> listOrderDetailetByOrderId(Integer orderOd);

	@Delete("delete from orderdetailet where orderId = #{orderId}")
    void delOdById(Integer orderId);
}
